<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>事件修饰符</title>
    <script src="js/vue.js"></script>
</head>
<body>

<div id="app">
   <p @mousemove="vv">

       x:{{x}} y:{{y}} <span @mousemove.stop>鼠标移动到这里停止鼠标移动事件</span>
   </p>

</div>

<script>
    new Vue({
        el:"#app",
       data:{
          x:0,
          y:0,
       },
        methods:{
            vv:function (event) {
                this.x=event.clientX;
                this.y=event.clientY;
            }
        }
    });
</script>
</body>
</html>